package dayong.com;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import conn.Connection1;
import conn.img;

/**
 * Servlet implementation class adminImageManage
 */
@WebServlet(description = "后台管理图片", urlPatterns = { "/adminImageManage" })
public class adminImageManage extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public adminImageManage() {
        super();
    }
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		Connection1 conn = new Connection1();
		List<img> list = conn.findImg();
		request.setAttribute("list", list);
		request.getRequestDispatcher("adminImageManage.jsp").forward(request, response);
	}
}
